<?php
require_once('../../message/pb_message.php');

// include the generated file
require_once('./pb_proto_.php');

$b=new Book();
$b->set_nbsp('hello');
//
$s=new Books();
$s->add_b();
$s->set_b(0,$b);
$a=$s->SerializeToString();
//var_dump($a);

$e=new Books();
$e->ParseFromString($a);
//var_dump($e->b_size());
$book=$e->b(0);
var_dump($book->nbsp());
?>